import type {LoginResult} from "../api/user/types";

export function getAccessToken() {
  return localStorage.getItem('access_token')
}

export function getRefreshToken() {
  return localStorage.getItem('refresh_token')
}

export function setToken(token: LoginResult) {
  return localStorage.setItem('access_token', token.accessToken)
  return localStorage.setItem('refresh_token', token.refreshToken)
}



export function removeToken() {
  localStorage.removeItem('access_token')
  localStorage.removeItem('refresh_token')
}